home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sources.misc
- From: parag@hpsdeb.sde.hp.com (Parag Patel)
- Subject: v25i038: wacco - A C++ LL parser generator, Patch03
- Message-ID: <1991Nov10.194121.22204@sparky.imd.sterling.com>
- X-Md4-Signature: 163644f1dc6211dfb39bc5e12762fe0a
- Date: Sun, 10 Nov 1991 19:41:21 GMT
- Approved: kent@sparky.imd.sterling.com
-
- Submitted-by: parag@hpsdeb.sde.hp.com (Parag Patel)
- Posting-number: Volume 25, Issue 38
- Archive-name: wacco/patch03
- Environment: C++, UNIX
- Patch-To: wacco: Volume 19, Issue 88-93
-
- I forgot to include some patches in the 1.3 release, so here's a small
- patch to bring wacco up to version 1.4. A few typos are fixed, a
- problem in io.C is fixed, and wacco compiles and runs with C++ 3.0 now.
-
- From the README:
-
- 1.4 forgot some diffs in 1.3 - this version fixes all the missing bits
- extern for yylex() in io.C is removed
- a few typos are fixed
- minor fix in defs.h for strfree() so it works with C++ 3.0
-
- -- Parag
-
- ---- Cut Here and feed the following to sh ----
- #!/bin/sh
- # This is a shell archive (produced by shar 3.49)
- # To extract the files from this archive, save it to a file, remove
- # everything above the "!/bin/sh" line above, and type "sh file_name".
- #
- # made 10/22/1991 17:44 UTC by parag@hp-ses
- # Source directory /u1/parag/tools/wacco
- #
- # existing files will NOT be overwritten unless -c is specified
- #
- # This shar contains:
- # length mode name
- # ------ ---------- ------------------------------------------
- # 4846 -rw-r--r-- patch-1.3-1.4
- #
- # ============= patch-1.3-1.4 ==============
- if test -f 'patch-1.3-1.4' -a X"$1" != X"-c"; then
- echo 'x - skipping patch-1.3-1.4 (File already exists)'
- else
- echo 'x - extracting patch-1.3-1.4 (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'patch-1.3-1.4' &&
- *** tmp/README Tue Jul 23 17:49:50 1991
- --- README Tue Oct 22 10:38:43 1991
- ***************
- *** 1,4
- ! $Header: README,v 1.11 91/07/23 18:49:49 hmgr Exp $
- X
- X Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- X You can do what you wish with this as long as
- X
- --- 1,4 -----
- ! $Header: README,v 1.13 91/10/22 11:38:42 hmgr Exp $
- X
- X Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- X You can do what you wish with this as long as
- ***************
- *** 77,79
- X some typos fixed in wacco.doc example but NOT in wacco.doc.{iw,ps}
- X
- X 1.3 fixed bug in gen.C which wouldn't dump user code bigger than 1024 bytes
- X
- --- 77,84 -----
- X some typos fixed in wacco.doc example but NOT in wacco.doc.{iw,ps}
- X
- X 1.3 fixed bug in gen.C which wouldn't dump user code bigger than 1024 bytes
- +
- + 1.4 forgot some diffs in 1.3 - this version fixes all the missing bits
- + extern for yylex() in io.C is removed
- + a few typos are fixed
- + minor fix in defs.h for strfree() so it works with C++ 3.0
- *** tmp/defs.h Fri May 17 15:29:54 1991
- --- defs.h Fri Sep 27 15:13:39 1991
- ***************
- *** 1,5
- X // Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! // $Header: defs.h,v 1.15 91/05/17 16:29:55 hmgr Exp $
- X
- X #include <stdio.h>
- X #include <stdlib.h>
- X
- --- 1,5 -----
- X // Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! // $Header: defs.h,v 1.16 91/09/13 15:30:32 hmgr Exp $
- X
- X #include <stdio.h>
- X #include <stdlib.h>
- ***************
- *** 18,24
- X #if FREE_TAKES_CHAR
- X inline void strfree(const char *s) { if (s != NULL) free((char *)s); }
- X #else
- ! inline void strfree(const char *s) { if (s != NULL) free((const void *)s); }
- X #endif
- X
- X // for large switch statements
- X
- --- 18,24 -----
- X #if FREE_TAKES_CHAR
- X inline void strfree(const char *s) { if (s != NULL) free((char *)s); }
- X #else
- ! inline void strfree(const char *s) { if (s != NULL) free((void *)s); }
- X #endif
- X
- X // for large switch statements
- *** tmp/io.C Fri Feb 22 15:08:32 1991
- --- io.C Mon Aug 26 16:59:03 1991
- ***************
- *** 1,5
- X // Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! static const char rcs_id[] = "$Header: io.C,v 1.13 91/02/22 16:08:20 hmgr Exp $";
- X
- X #include "defs.h"
- X #include "toks.h"
- X
- --- 1,5 -----
- X // Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! static const char rcs_id[] = "$Header: io.C,v 1.14 91/08/26 17:59:01 hmgr Exp $";
- X
- X #include "defs.h"
- X #include "toks.h"
- ***************
- *** 30,36
- X
- X
- X extern char yytext[];
- - extern int yylex();
- X
- X static char filename[100];
- X static FILE *fp = stdin;
- X
- --- 30,35 -----
- X
- X
- X extern char yytext[];
- X
- X static char filename[100];
- X static FILE *fp = stdin;
- *** tmp/main.C Fri Feb 22 15:06:41 1991
- --- main.C Wed Jul 31 15:27:58 1991
- ***************
- *** 1,5
- X // Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! static const char rcs_id[] = "$Header: main.C,v 1.22 91/02/22 16:05:39 hmgr Exp $";
- X
- X #include "version.C"
- X
- X
- --- 1,5 -----
- X // Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! static const char rcs_id[] = "$Header: main.C,v 1.23 91/07/31 16:27:57 hmgr Exp $";
- X
- X #include "version.C"
- X
- ***************
- *** 370,376
- X check();
- X
- X if (w_numerrors > 0)
- ! quit("Not generating any w_output files");
- X
- X if (statonly)
- X {
- X
- --- 370,376 -----
- X check();
- X
- X if (w_numerrors > 0)
- ! quit("Not generating any output files");
- X
- X if (statonly)
- X {
- *** tmp/version.C Tue Jul 23 17:49:52 1991
- --- version.C Tue Oct 22 10:34:28 1991
- ***************
- *** 1,3
- X // Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- X
- ! static char *const whatid = "@(#)wacco 1.3 (23 July 1991)";
- X
- --- 1,3 -----
- X // Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- X
- ! static char *const whatid = "@(#)wacco 1.4 (22 October 1991)";
- *** tmp/wacco.doc Mon May 20 19:28:08 1991
- --- wacco.doc Wed Aug 14 09:45:33 1991
- ***************
- *** 1,5
- X Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! << $Header: wacco.doc,v 1.27 91/05/20 20:28:05 hmgr Exp $ >>
- X
- X << Please see the wacco(1) man page for details on its usage. >>
- X << Only the grammar format is described here. >>
- X
- --- 1,5 -----
- X Copyright (c) 1991 by Parag Patel. All Rights Reserved.
- ! << $Header: wacco.doc,v 1.28 91/08/14 10:45:30 hmgr Exp $ >>
- X
- X << Please see the wacco(1) man page for details on its usage. >>
- X << Only the grammar format is described here. >>
- ***************
- *** 190,196
- X may be used wherever {} blocks are allowed.
- X
- X
- ! The empty rule may not be implicitly specified is in yacc, but must
- X be defined with the special "[]" symbol:
- X
- X null: [] ;
- X
- --- 190,196 -----
- X may be used wherever {} blocks are allowed.
- X
- X
- ! The empty rule may not be implicitly specified as in yacc, but must
- X be defined with the special "[]" symbol:
- X
- X null: [] ;
- SHAR_EOF
- chmod 0644 patch-1.3-1.4 ||
- echo 'restore of patch-1.3-1.4 failed'
- Wc_c="`wc -c < 'patch-1.3-1.4'`"
- test 4846 -eq "$Wc_c" ||
- echo 'patch-1.3-1.4: original size 4846, current size' "$Wc_c"
- fi
- exit 0
- exit 0 # Just in case...
- --
- Kent Landfield INTERNET: kent@sparky.IMD.Sterling.COM
- Sterling Software, IMD UUCP: uunet!sparky!kent
- Phone: (402) 291-8300 FAX: (402) 291-4362
- Please send comp.sources.misc-related mail to kent@uunet.uu.net.
-